import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import User from '@/components/user'
import Role from '@/components/role'
import LogLogin from '@/components/log-login'
import LogOperation from '@/components/log-operation'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/role',
      name: 'Role',
      component: Role
    },
    {
      path: '/log-login',
      name: 'LogLogin',
      component: LogLogin
    },
    {
      path: '/log-operation',
      name: 'LogOperation',
      component: LogOperation
    }
  ]
})
